
<?php

$db=&JFactory::getDBO();
$select="CREATE TABLE IF NOT EXISTS `#__cvote` (
  `id` int(255) NOT NULL AUTO_INCREMENT,
  `like` int(255) NOT NULL,
  `ltext` varchar(255) NOT NULL,
  `dlike` int(255) NOT NULL,
  `dtext` varchar(255) NOT NULL,
  `ip` varchar(255) NOT NULL,
  `article_id` int(255) NOT NULL,
  PRIMARY KEY (`id`)
)
";
$db->setQuery($select);
$db->Query();
?>